//
//  WZXAboutOurViewController.m
//  WWLNetease
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 Echo.Jobs. All rights reserved.
//

#import "WZXAboutOurViewController.h"

@interface WZXAboutOurViewController ()

@end

@implementation WZXAboutOurViewController

- (void)viewWillAppear:(BOOL)animated {
    
    self.navigationController.navigationBar.hidden = NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:0.886 green:0.227 blue:0.255 alpha:1];
    
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.view.frame.size.width / 2 - 60 * KPropotionWidth, 0, 120 * SIZE, 30 * SIZE)];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    titleLabel.text = @"关于我们";
    titleLabel.textColor = [UIColor whiteColor];
    titleLabel.font = [UIFont boldSystemFontOfSize:17 * SIZE];
    self.navigationItem.titleView = titleLabel;

    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"icon_back@2x.png"] style:UIBarButtonItemStylePlain target:self action:@selector(backToHomePage:)];
    self.navigationItem.leftBarButtonItem.tintColor = [UIColor whiteColor];

    
    UILabel *introduceLabel = [[UILabel alloc] initWithFrame:CGRectMake(15 * SIZE, 40, self.view.frame.size.width - 30 * KPropotionWidth, self.view.frame.size.height / 4)];
    introduceLabel.numberOfLines = 0;
    introduceLabel.text = @"        WWLNetease(网易新闻)客户端是专门为iPhone用户量身打造的在线阅读新闻产品。用户可以通过这款产品及时的了解各个国家及各种行业的新闻，可以在第一时间了解到最新的新闻。同时这款应用还增加了视频以及电台的娱乐功能，可以让用户轻松的体验阅读新闻的乐趣。\n\n用户反馈邮箱：394349908@qq.com";
    introduceLabel.font = [UIFont boldSystemFontOfSize:15 * SIZE];
    [self.view addSubview:introduceLabel];


    
    
    
}

- (void)backToHomePage:(UIBarButtonItem *)barButtonItem
{
    self.tabBarController.tabBar.hidden = NO;
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
